package com.huabo.fxgl.mapper;

import com.huabo.fxgl.entity.RiskLevelmapping;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huabo.fxgl.entity.RiskPossibility;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LiYe
 * @since 2022-08-01
 */
@Repository
public interface RiskLevelmappingMapper extends BaseMapper<RiskLevelmapping> {
    @Select("select R.*" +
            "    from TBL_RISK_LEVELMAPPING R" +
            "    WHERE R.INFLUDEGREE = #{param1}")
    List<RiskLevelmapping> getByInfluId(String influid);

    @Select("select * from TBL_RISK_LEVELMAPPING WHERE assstdid=#{param1}")
    Set<RiskLevelmapping> selectListByAssstdid(BigDecimal assstdid);
}
